﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>

    <title>会员登录_诚信创投</title>
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta property="qc:admins" content="230635463365100163757337" />
    <link href="~/_files/base.css" rel="stylesheet" />
    <link href="~/_files/ceng.css" rel="stylesheet" />
    <link href="~/_files/Safe.css" rel="stylesheet" />
    <script src="~/_files/com.js"></script>
    <script src="~/_files/jQuery.md5.js"></script>
    <link href="~/pc/themes/base.css" rel="stylesheet" />
    <link href="~/pc/themes/ceng.css" rel="stylesheet" />
    <link href="~/pc/themes/Safe.css" rel="stylesheet" />

    <script type="text/javascript" async="" src="https://static.fraudmetrix.cn/fm.js?ver=0.1&amp;t=413599"></script>
    <script language="javascript" type="text/javascript">
        var tongdunRequestID;
        (function() {
            tongdunRequestID='my089-17021720-5744-7329-1490-228633568580';
            _fmOpt = {
                partner: 'my089',
                appName: 'my089_web',
                token: tongdunRequestID };
            var cimg = new Image(1,1);
            cimg.onload = function() {
                _fmOpt.imgLoaded = true;
            };
            cimg.src = "https://fp.fraudmetrix.cn/fp/clear.png?partnerCode=my089&appName=my089_web&tokenId=" + _fmOpt.token;
            var fm = document.createElement('script'); fm.type = 'text/javascript'; fm.async = true;
            fm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.fraudmetrix.cn/fm.js?ver=0.1&t=' + (new Date().getTime()/3600000).toFixed(0);
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fm, s);
        })();
        function setTongdunRequestID(){
            document.getElementById("requestId").value=tongdunRequestID;
        }
    </script>
</head>
<body>
    <div class="Small_head"  >
        <div class="headcont" style="margin-bottom: 20px;">
            <div class="page">
                <h1 class="lf" ><a href="/Home/Index" style="background-image: url('../../pc/resources/bule_img/Newbg_1.png');"><span> 汇川金融电子商务股份有限公司</span></a></h1>
            </div>
        </div>
        </div>
    <div class="content" id="hongman" style="min-height: 300px;">
        <style type="text/css">
            body {
                background: #f1f1f1;
            }

            .Small_head .Small_head_cont h1 {
                width: 280px;
                height: 40px;
                background: url() no-repeat left -49px;
            }
            .content {
                background: #fff;
                width: 100%;
                margin: 0;
                padding: 90px 0;
            }

            .Register {
                margin: 0;
            }

            .txt_180 {
                width: 200px;
                height: 35px;
                line-height: 35px;
            }
            .txt_80 {
                width: 110px;
                height: 32px;
                line-height: 32px;
            }
            div.foot_1 {
                padding: 20px 0;
                margin-top: 0px;
            }
        </style>
            <div style="width: 900px; margin: 0 auto;">
                <div class="Register">
                    <div style="width:340px;" class="Reg_lf lf">
                        <h6>会员登录<span>忘记密码？<a target="_blank" href="">快速找回密码&gt;&gt;</a></span></h6>
                            <table cellspacing="0" cellpadding="0">
                                 <tr>
                                     <td colspan="3" style="height:14px;">
                                         <span id="Login_TF"></span>
                                     </td>
                                </tr>
                                <tr>
                                    <td>
                                        用户名：
                                    </td>
                                    <td><input type="text" id="name" placeholder="请输入用户名" /></td>
                                    <td>
                                        &nbsp;<span id="Sname"> </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>密码：</td>
                                    <td><input type="password" id="pwd" placeholder="请输入密码" /></td>
                                    <td>&nbsp;<span id="Spwd"></span></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" class="Flat_but radius_5" onclick="LoginFun()" value="立即登录" style="width:80px; height:30px;" /></td>
                                    <td></td>
                                </tr>
                            </table>
                        <div style="margin-top:50px;width:300px; float:left;">
                            <a style="font-size:8px; color:blue; float:right;" href="/MyAccount/View_Register">立即注册！</a><span style="font-size:8px; float:right;">没有账号></span>
                        </div>
                    </div>
                    <div style=" height:251px; width:464px; margin:60px 7px 0 0;" class="Reg_rt rt">
                        <!--<a href="https://lg.my089.com" target="_blank"> <img src="/resources/bule_img/loginpic.png"></a>-->
                        <a href="" target="_blank"> 
                            <img src="~/_files/登陆Image.png" />
                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        <!--</form>-->
    </div>
</body>
</html>
<script>

    $(function () {
        $("#name").blur(function () {
            if ($("#name").val() == "") {
                $("#Sname").html("×请输入用户名");
                $("#Sname").css("color", "red");
            }
            else {
                $("#Sname").html("√");
                $("#Sname").css("color", "green");
            }
        })
        $("#pwd").blur(function () {
            if ($("#pwd").val() == "") {
                $("#Spwd").html("×请输入密码");
                $("#Spwd").css("color", "red");
            }
            else {

                $("#Spwd").html("√");
                $("#Spwd").css("color", "green");
            }
        })
       
    })

    function LoginFun() {
        if ($("#name").val() == "")
        {
            $("#Sname").html("×请输入用户名");
            $("#Sname").css("color", "red");
        }
        else
        {
            $("#Sname").html("√");
            $("#Sname").css("color", "green");
            if ($("#pwd").val() == "")
            {
                $("#Spwd").html("×请输入密码");
                $("#Spwd").css("color", "red");
            }
            else
            {
                $("#Spwd").html("√");
                $("#Spwd").css("color", "green");

                             
                $.ajax({
                    url: "/MyAccount/View_UserLoginDo",
                    type: "post",
                    data: {
                        name: $("#name").val(),
                        pwd: $("#pwd").val()
                    },
                    success: function (mes) {
                        if (mes == 1) {                            
                            location.href = '/MyAccount/MyAccountIndex'

                        }
                        else {
                            $("#Login_TF").html("×用户名或密码错误");
                            $("#Login_TF").css("color", "red");
                        }
                    }
                })
            }
        }
    }
</script>
@{
    BI.CF.Model.UserrsModel model = Session["model"] as BI.CF.Model.UserrsModel;
}